IPSEC SITE TO SITE BETWEEN ROUTERS
Configuration Steps:
//An ISAKMP Policy defines the combination of parameters used for ISAKMP (Phase-1) tunnel negotiation//
Router(config)#crypto isakmp policy <priority>
//We assign a unique priority number (1 through 10,000, with 1 being the highest priority) for each policy. The default value of the parameter will be assigned if we do not specify a value for the parameter//
Router(config-policy)#encryption <encryption algorithm>
//Specify the encryption algorithm (Default is des)//
Router(config-policy)#hash <hash algorithm >
//Specify the hash algorithm (Default is sha)//
Router(config-policy)#group <Diffie Hellman group >
//Specify the diffie hellman group (Default is DH group 1) which decides the length of shared secret key generated by DH process//
Router(config-policy)#authentication <authentication method >
//Specify the authentication method (Default is rsa-sig)//
Router(config-policy)#lifetime <time in seconds>
//Specify the security association's lifetime—in seconds (Default is 86400 seconds)//
Step 2: Configure ISAKMP Key
Router(config)#crypto isakmp key <#> < pre-shared-key> address <peer address>
Step 3: Configure Mirrored ACL/Crypto ACL for interesting traffic
Router(config)#access-list <#> permit <protocol> <source address > <destination address >
//Specify the interesting traffic (network or hosts to be protected)//
Step 4: Configure Transform set
Router(config)#crypto ipsec transform-set <name > <encapsulation-encryption> < encapsulation-hash>
//Define a transform set and specify the protocols to be used for phase-2 tunnel//
Router(cfg-crypto-trans)#mode <transport or tunnel>
//To change the propagation mode associated with transform set. Transport mode is only applicable when our interesting traffic (proxy-id) and IPSEC peers are same //
Router(config)#crypto map <name> <#> ipsec-isakmp
// Specify a sequence number for the crypto map we created, and configure the crypto map to use IPSec to establish SAs//
VERIFICATION COMMANDS:
Router#show crypto isakmp policy
Router#show access-lists <#>
Router#show crypto ipsec transform-set
Router#show crypto map